package com.whfc.common.enums;

/**
 * @Description: 删除标记
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/7/23 8:43
 */
public enum BindFlag {

    UNBIND(0, "未绑定"),

    BIND(1, "已绑定");

    private Integer value;

    private String desc;

    BindFlag(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static String parseValue(Integer value) {
        switch (value) {
            case 0:
                return UNBIND.desc;
            case 1:
                return BIND.desc;
            default:
                return "";
        }
    }
}
